import java.util.ArrayList;
import java.util.List;

public class Leetcode2319 {
    public static void main(String[] args) {
        String[][] c = new String[1][1];
        List<List<String>> a = new ArrayList<>();
        List<String>[] b = new List[1];
        List<String[]> d = new ArrayList<>();
    }

    public static boolean checkXMatrix(int[][] grid) {
        for (int row = 0; row < grid.length; row++) {
            for (int column = 0; column < grid[row].length; column++) {
                //判断点是否在x上
                if (row == column || row + column == grid.length - 1) {
                    if (grid[row][column] == 0) {
                        return false;
                    }
                } else {
                    if (grid[row][column] != 0) {
                        return false;
                    }
                }
            }
        }

        return true;
    }
}
